{include file="admin/header.htm"}
<table cellpadding="2" cellspacing="1" class="table_form">
    <caption>上次登陆信息</caption>
    <tr>
        <th width="80"><strong>登陆ip</strong></th>
        <td id="ip">-</td>
        <th width="80"><strong>登陆地点</strong></th>
        <td id="addr">-</td>
        <th width="80"><strong>登陆时间</strong></th>
        <td id="lastvist">-</td>
    </tr>
</table>
{include file="admin/footer.htm"}
<script type="text/javascript">
var ip = getcookie('a_ip');
if(ip) {
    $('#ip').html(ip);
    $('#lastvist').html(getcookie('a_lastvist'));
    $.get('{$smarty.const.ADMIN_NAME}?m=admin&c=index&a=addr&ip='+ip, function(s) {
        $('#addr').html(s);
    });
}
</script>